package cn.client.data.remoteData.repository

import cn.client.data.remoteData.ApiService
import cn.client.data.remoteData.bean.BaseResp
import cn.client.data.remoteData.bean.LoginRes
import cn.client.data.remoteData.bean.User
import cn.client.data.remoteData.bean.VerifyAccount
import javax.inject.Inject

/**
 * 数据存储库
 */
class SignInRepository @Inject constructor(private val apiService: ApiService) {

    // TODO: 登录-账号验证
    suspend fun signInAccount(verifyAccount: VerifyAccount): BaseResp<Any>
    {
        return apiService.signInFirst(verifyAccount)
    }

    // TODO: 登录-密码验证
    suspend fun signInSecond(user: User) : BaseResp<LoginRes>
    {
        return apiService.signInSecond(user)
    }


}
